package com.assignwork.service;

import com.assignwork.dto.VoyageCabinNodeSearchDTO;
import com.assignwork.dto.VoyageCabinNodeSubmitDTO;
import com.assignwork.entity.VoyageCabinNode;
import com.assignwork.vo.VoyageCabinNodePageVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;

/**
 * 分舱停时服务类
 */
public interface IVoyageCabinNodeService extends BaseService<VoyageCabinNode> {

    /**
     * 分页
     * @param dto 搜索参数
     * @param page 分页
     * @return IPage<VoyageCabinNodePageVO>
     * @author dujianyu
     * @since 2023/8/18 9:40
     */
    IPage<VoyageCabinNodePageVO> selectVoyageCabinNodePage(VoyageCabinNodeSearchDTO dto, IPage<VoyageCabinNodePageVO> page);

    /**
     * 新增或修改
     * @param dto 数据
     * @return Boolean
     * @author dujianyu
     * @since 2023/8/18 10:06
     */
    Boolean submitVoyageCabinNode(VoyageCabinNodeSubmitDTO dto);
}